const getCurrentLocation = () =>{
  return new Promise((resolve, reject) => {
    uni.getLocation({
      type: 'wgs84',
      success: function (res) {
        resolve({marsLongitude: res.longitude, marsLatitude: res.latitude,})
      },
      fail:function () {
        resolve({marsLongitude: 0, marsLatitude: 0,})
      }
    });
  })
}

export {getCurrentLocation}
